using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

namespace ACM.cmsarea08.Controls
{
    public partial class baseEditPage : System.Web.UI.Page
    {
        #region DataBaseMethods
        public string TablePrefix = ACM.cmsarea08.mainconfiguration.MainConf.PrefissoTabelle;
        public DataRow GetDataRow(string query)
        {
            return ACM.cmsarea08.DBManager.mainConnection.Hstandard_ReadRow(query);
        }
        public int ExecuteQuery(string query)
        {
            return ACM.cmsarea08.DBManager.mainConnection.Helper_NonQuery(query);
        }
        public object GetScalar(string query)
        {
            return ACM.cmsarea08.DBManager.mainConnection.HStandard_SC(query);
        }
        public DataSet GetDataSet(string query)
        {
            return ACM.cmsarea08.DBManager.mainConnection.Helper_Dataset(query);
        }
        #endregion
        #region TextUtility
        public string SqlText(string testo)
        {
            return ACM.cmsarea08.Function.TextClass.textclass.SqlTesto(testo);
        }
        public string CutWord(string source, int cutAt)
        {
            return ACM.cmsarea08.Function.TextClass.textclass.TagliaPerParole(source, cutAt);
        }
        public string CleanHtml(string source)
        {
            return ACM.cmsarea08.Function.TextClass.textclass.CleanHTML(source);
        }

        #endregion
    }
}
